<?php get_backend_header(); ?>

<h2 class ="title">Profile</h2>

<input type="hidden" name="user_id" id="user_id" value="<?php echo $user_id; ?>" />
	
<?php get_message(); ?>

<div class="form">
    <div class="unit">
        <div class ="line">
            <label class="unit">User No:</label>
            <div class="unit field bold">
                    <?php echo $user_no; ?>
            </div>
        </div>

        <div class ="line">
            <label class="unit">First Name:</label>
            <div class="unit field bold">
                    <?php echo $fname; ?>
            </div>
        </div>

        <div class ="line">
            <label class="unit">Middle Name:</label>
            <div class="unit field bold">
                    <?php echo $mname; ?>
            </div>
        </div>

        <div class ="line">
            <label class="unit">Last Name:</label>
            <div class="unit field bold">
                    <?php echo $lname; ?>
            </div>
        </div>

    </div>

    <div class="unit">
        <div class ="line">
            <label class ="unit">Email:</label>
            <div class="unit field">
                    <?php echo $email; ?>
            </div>
        </div>

        <div class ="line">
            <label class ="unit">Contact No:</label>
            <div class="unit field">
                    <?php echo $contact_no; ?>
            </div>
        </div>

        <div class ="line">
            <label class ="unit">Contact Person:</label>
            <div class="unit field">
                    <?php echo $contact_person; ?>
            </div>
        </div>

        <div class ="line">
            <label class ="unit">Address:</label>
            <div class="unit field" style="height: auto">
                    <?php echo $address; ?>
            </div>
        </div>

    </div>
</div>

<div class ="clear"></div>

<div class="buttons">
    <button id="update" name="update">Update</button>
    <button tabIndex="250" id="changepassword" name="changepassword">Change Password</button>
</div>

<script type="text/javascript">
	$('#update').button({
		icons: {primary: 'ui-icon-pencil'}
	}).click(function() {
		window.location = siteUrl + 'profile/edit/';
	});
	
	$('#changepassword').button({
		icons: {primary: 'ui-icon-pencil'}
	}).click(function(e) {
		window.location = siteUrl + 'profile/change_password';
		e.preventDefault();
	});	
	
</script>
<?php get_backend_footer();